﻿using System;
using System.Data;
using System.Data.Common;
using System.Collections;
using System.Collections.Generic;

namespace AliboboStockLib
{
    public interface ISQLAgent
    {
        DbTransaction BeginTransation();
        DbParameter createParam(String name, Object value);
        DbParameter createParam(String name, DbType type, Object value);
        void executeInsert(String sql,List<String> names, ArrayList ps);
        DbCommand getCommand();
        DbCommand getCommand(string cmd);
        DbDataAdapter getAdapter(DbCommand cmd);
    }
}
